# encoding: utf-8
# @author: wangxin
# @software: garner
# @file: urls.py
# @time: 2025/1/17 13:16
from django.urls import path,re_path

import OrderSettingList
from backend import views, checkgroupviews, ttcmconstitutionidentificationViews, getSetmealReportViews, \
    getBusinessReportDataViews, OrderSettingviews, setmealviews, getMemberReport, healthCheckUpViesws, \
    exportBusinessReportViesws

urlpatterns = [
    #检查项目路由
    re_path('checkItem/(\d+)/(\d*)', views.CheckieView.as_view()),
    re_path(r'^checkItem/(\d+)/?$', views.Tab_CheckieView.as_view()),
    path('checkItem/', views.CheckieView.as_view()),

    #检查组路由
    path('checkgroup/', checkgroupviews.CheckGroup.as_view()),
    re_path('checkgroup/(\d+)/(\d*)', checkgroupviews.CheckGroup.as_view()),
    path('tCheckgroupCheckitem/', checkgroupviews.TCheckgroupCheckitemView.as_view()),

    #套餐

    # 套餐
    path('setmeal/', setmealviews.Stmeal.as_view()),
    re_path('setmeal/(\d+)/(\d*)', setmealviews.Stmeal.as_view()),
    re_path(r'^checkgroup/(\d+)/?$', checkgroupviews.Tab_GroupView.as_view()),
    path('UploadImg', setmealviews.UploadImg.as_view()),
    path('tsetmealGroup/', setmealviews.TsetmealGroup.as_view()),
    path('clearImg/', setmealviews.clearImg.as_view()),
    #中医体质辨别
    path('ttcmconstitutionidentification/', ttcmconstitutionidentificationViews.TTcmConstitutionIdentificationView.as_view()),
    re_path('ttcmconstitutionidentification/(\d+)/(\d*)', ttcmconstitutionidentificationViews.TTcmConstitutionIdentificationView.as_view()),
    #套餐占比
    path('getSetmealReport/', getSetmealReportViews.getSetmealReportViewsView.as_view()),
    #工作量统计
    path('getBusinessReportData/', getBusinessReportDataViews.getBusinessReportDataView.as_view()),
    #预约设置
    path('orderSetting/', OrderSettingviews.OrderSettingView.as_view()),
    #预约列表设置
    re_path('orderSettingList/(\d+)/(\d*)', OrderSettingList.OrderSettingListView.as_view()),
    re_path(r'^orderSettingList/(\d+)/?$',OrderSettingList.OrderSettingListView.as_view()),
    path('orderSettingList/', OrderSettingList.OrderSettingListView.as_view()),
    path('orderUploadExcel/', OrderSettingviews.uploadExcel.as_view()),
    #会员统计
    path('getMemberReport/', getMemberReport.getMemberReportView.as_view()),
    #报告上传
    path('healthCheckUp/',healthCheckUpViesws.healthCheckUp.as_view()),
    #导出运营数据
    path('exportBusinessReport/', exportBusinessReportViesws.exportBusinessReportp.as_view())

]
